package com.crp.unitalinforbaseplat.app.unitalinforbaseplat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 出库表
 * </p>
 *
 * @author zsx
 * @since 2020-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ExitStore implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 创建人
     */
    private Integer createUserId;

    /**
     * 配件名称
     */
    private String name;

    /**
     * 配件规格
     */
    private String specifications;

    /**
     * 配件型号
     */
    private String model;

    /**
     * 厂商
     */
    private String manufacturer;

    /**
     * 入库数量
     */
    private Integer num;

    /**
     * 入库时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date enterTime;

    /**
     * 出库时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date exitTime;

    /**
     * 物品有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date validityTime;

    /**
     * 仓库id
     */
    private Integer storeId;

    /**
     * 仓库名称
     */
    private String storeName;

    /**
     * 申请人姓名
     */
    private String applicationName;

    /**
     * 类型 1：出库单 2：损耗单
     */
    private Integer type;

    private Integer status;

    private Integer partsId;
    private String verifierOpinion;
    private String managersOpinion;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date findTime;
    private String reason;
    private Integer inventoryId;

}
